class CreateAdvertisments < ActiveRecord::Migration
  def self.up
    create_table :advertisments do |t|
      t.integer :user_id
      t.integer :university_id
      t.integer :sub_category_id
      t.string  :title
      t.string  :stripped_title
      t.text    :description
      t.integer :area_id
      t.text    :location
      t.float   :price, :default => 0.0
      t.integer :hits, :default => 0
      t.integer :reply_flag, :default => 3
      t.datetime :activated_on
      t.timestamps
    end
  end

  def self.down
    drop_table :advertisments
  end
end
